package com.ferris.observice;

import java.util.Observable;

public class Teacher extends Observable{
	//讲话
	private String string;
    public String getString() {
	return string;
}
    public Teacher(){
    	
    }
    public void setString(String string) {
    	this.string = string;
    }

	public void Speak(String string){
		this.string=string;
		setChanged();
    	notifyObservers(string);
    }
    
    
}
